package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "talk_session",comment = "用户聊天列表")
public class TalkSession {
    @AcColumn(name = "id",comment = "聊天列表ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "talk_type",defaultValue = "1",comment = "聊天类型[1:私信;2:群聊;]",type = ColumnTypeEnums.TINYINT)
    private Integer talk_type;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "receiver_id",defaultValue = "0",comment = "接收者ID（用户ID 或 群ID）",type = ColumnTypeEnums.INT)
    private Integer receiver_id;

    @AcColumn(name = "is_top",defaultValue = "0",comment = "是否置顶[0:否;1:是]",type = ColumnTypeEnums.TINYINT)
    private Integer is_top;

    @AcColumn(name = "is_robot",defaultValue = "0",comment = "是否机器人[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_robot;

    @AcColumn(name = "is_delete",defaultValue = "0",comment = "是否删除[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_delete;

    @AcColumn(name = "is_disturb",defaultValue = "0",comment = "消息免打扰[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_disturb;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;
}
